package cn.com.cloudpioneer.evaluate.mapper;

import cn.com.cloudpioneer.evaluate.model.TargetModel;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @auther maruikai
 * @create 2023/9/18-17:10
 */
public interface TargetMapper {

    Integer insert(TargetModel targetModel);

    Integer update(TargetModel targetModel);

    List<TargetModel> findByTaskId(@Param("taskId") String taskId);

    TargetModel findByTargetId(@Param("targetId")String targetId);

    Integer setFilePath(@Param("targetId") String targetId, @Param("filePath") String filePath);

    Integer delTarget(@RequestParam("deleteFlag") Boolean deleteFlag,@Param("targetId") String targetId);

    Integer updateFilePath(@RequestParam("filePath") String filePath,@Param("targetId") String targetId);
}
